﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace ADOWrapper.Test
{
    [TestClass]
    public class DatabaseTest
    {
        [TestMethod]
        public void ExecuteNonQuery()
        {

            Moq.Mock<System.Data.Common.DbConnection> connectionMock = new Moq.Mock<System.Data.Common.DbConnection>();
             Moq.Mock<System.Data.Common.DbCommand> commandMock = new Moq.Mock<System.Data.Common.v>();
            Moq.Mock<System.Data.Common.DbProviderFactory> factoryMock = new Moq.Mock<System.Data.Common.DbProviderFactory>();

            factoryMock.Setup(x => x.CreateConnection()).Returns(connectionMock.Object);
            connectionMock.Setup(x => x.CreateCommand()).Returns(commandMock.Object);
            Database d = new Database(factoryMock.Object, string.Empty);


            d.ExecuteNonQuery("");
        }
    }
}
